﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;
using WeChat.Common;
using WeChat.JsSDK.lib;
using WeChat.JsSDK;
using WeChat.Common2;

namespace WeChat
{
    public partial class Login : System.Web.UI.Page
    {
            
        protected void Page_Load(object sender, EventArgs e)
        {
            //AlipayApply ap = new AlipayApply();
            //ap.uploadImg("logo_pic", "C:/Users/admin/Desktop/alipay/logo_pic.png");
        }

        protected void logins_Click(object sender, EventArgs e)
        {
            LoginBLL lb = new LoginBLL();
            string username = Request["username"].ToString();
            string password = Request["password"].ToString();
            bool l = lb.verifyUser(username,password);
            if (!l)
            {
                Page.ClientScript.RegisterStartupScript(typeof(String), "Error", "<script>alert('用户名或密码输入错误，请重新输入！')</script>");
                return;
            }
            else
            {
                Session["user"] = username;
                Response.Redirect("Manager/index.aspx");
            }

        }
    }
}
